<?php

namespace application\controller\cp;

use application\controller\BaseWeb;

class BaseController extends BaseWeb {

    public function __construct() {
        parent::__construct();
        $this->view->title = "Quản trị hệ thông website";
        $this->view->debug = true;
        $this->layout();
    }

    public function layout() {
        $functionGroup = new \application\service\FunctionService();
        $this->view->cpFunctionGroups = $functionGroup->getCpFunctionGroup();
        $this->view->cpFunctions = $functionGroup->getCpFunctions();
    }

}
